import Vuex from "vuex";
import Vue from 'vue'

Vue.use(Vuex);
const store = new Vuex.Store({
    state: {
        userList: [],
        monthList:[],
        serverParams:{},
    },
    mutations: {
        updateServerParams(state,payload){
            state.serverParams = payload.serverParams
        },
        updateList(state, payload) {
            state.userList = payload.userList
        },
        updateMonthList(state, payload) {
            state.monthList = payload.monthList
        }
    }
});
export default store;